<!DOCTYPE html>
<html lang="en">

<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
</head>

<body>
    <div id="app">
        <div v-html="msgHtml.msg1"></div>
        <div v-html="msgHtml.msg2"></div>
        <div v-text="msgText"></div>
        <input type="text" v-model="msgModel.msg"><br> {{text}}
        <br> {{msgModel.msg}}
        <button v-on:click="handleClick">v-on:click</button>
        <button @click="handleClick">@click</button>
        <p :title="msgTitle">change attr 'title'</p>
    </div>
    <script src="Observer.js"></script>
    <script src="MyVue.js"></script>
    <script>
        const vm = new MVue({
            el: "#app",
            data: {
                msgHtml: {
                    msg1: "i am html content1",
                    msg2: 'i am html content2'
                },
                msgText: "i am text content",
                msgModel: {
                    msg: "i am Model content"
                },
                text: "text",
                msgTitle: 'i am bind attr title'
            },
            methods: {
                handleClick() {
                    this.msgText = 'hahaha'
                }
            }
        });
    </script>
</body>

</html>